module.exports = [
  {
    url: '/api/dashboard',
    type: 'get',
    response: () => {
      return {
        code: 200,
        message: 'success',
        data: {
          stats: {
            goodsCount: 156,
            machineCount: 28,
            todayOrderCount: 342,
            todaySales: 5689.50
          },
          recentOrders: [
            {
              orderNo: 'ORD20230520001',
              goodsName: '可口可乐',
              price: 3.50,
              status: 'paid',
              createTime: '2023-05-20 14:25:36'
            },
            {
              orderNo: 'ORD20230520002',
              goodsName: '乐事薯片',
              price: 5.00,
              status: 'paid',
              createTime: '2023-05-20 14:18:22'
            },
            {
              orderNo: 'ORD20230520003',
              goodsName: '矿泉水',
              price: 2.00,
              status: 'unpaid',
              createTime: '2023-05-20 14:10:45'
            },
            {
              orderNo: 'ORD20230520004',
              goodsName: '巧克力',
              price: 8.50,
              status: 'paid',
              createTime: '2023-05-20 13:56:12'
            },
            {
              orderNo: 'ORD20230520005',
              goodsName: '饼干',
              price: 4.50,
              status: 'refunded',
              createTime: '2023-05-20 13:42:33'
            }
          ],
          inventoryWarnings: [
            {
              goodsId: 1001,
              goodsName: '可口可乐',
              machineId: 2001,
              machineName: '1号楼1层贩卖机',
              currentStock: 2,
              warningStock: 5
            },
            {
              goodsId: 1003,
              goodsName: '矿泉水',
              machineId: 2003,
              machineName: '3号楼1层贩卖机',
              currentStock: 3,
              warningStock: 5
            },
            {
              goodsId: 1005,
              goodsName: '饼干',
              machineId: 2002,
              machineName: '2号楼2层贩卖机',
              currentStock: 4,
              warningStock: 5
            }
          ],
          salesTrend: {
            dates: ['05-14', '05-15', '05-16', '05-17', '05-18', '05-19', '05-20'],
            values: [3200, 3800, 4100, 4500, 5200, 4800, 5689]
          },
          topGoods: {
            names: ['可口可乐', '矿泉水', '乐事薯片', '巧克力', '饼干'],
            values: [156, 132, 98, 76, 65]
          }
        }
      }
    }
  }
]